Skip to content

Fix IMPORTANT audit findings (fix-id-sleep-yes-audit)#15

Closed
kelp wants to merge 1 commit into
mainfrom
fix-id-sleep-yes-audit
Closed

Fix IMPORTANT audit findings (fix-id-sleep-yes-audit)#15
kelp wants to merge 1 commit into
mainfrom
fix-id-sleep-yes-audit

Conversation

@kelp

@kelp kelp commented Mar 30, 2026

Copy link
Copy Markdown
Owner

Fixes IMPORTANT audit findings. Tests pass.

id: -z alone now exits 2 (GNU rejects without -u/-g/-G).
id: -a is now a no-op (GNU behavior), not an alias for -G.
sleep: 'inf'/'infinity' accepted as maxInt(u64) (GNU compat).
sleep: error message includes the invalid token name.
yes: unknown flag exits 1 (GNU behavior), not 2.
yes: error message includes the unrecognized flag name.
@kelp kelp mentioned this pull request May 27, 2026
3 tasks
@kelp

kelp commented May 27, 2026

Copy link
Copy Markdown
Owner Author

Changes already on main — verified at src/dd.zig lines 320 (swab odd-byte), 679 (conv=sync space padding), plus corrected EBCDIC/IBM tables.

@kelp kelp closed this May 27, 2026
@kelp kelp deleted the fix-id-sleep-yes-audit branch May 27, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant